package com.ccrfid.rmc6.repository.business.prison.rollcall;

import com.ccrfid.rmc6.entity.business.prison.rollcall.PrisonRollcallPlacePersonnelRelation;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface PrisonRollcallPlacePersonnelRepository extends Repository<PrisonRollcallPlacePersonnelRelation, Long> {

    PrisonRollcallPlacePersonnelRelation save(PrisonRollcallPlacePersonnelRelation relation);

    void deleteByPlaceIdAndPersonnelId(Long placeId, Long personnelId);

    List<PrisonRollcallPlacePersonnelRelation> getAllByPlaceId(Long placeId);

    Boolean existsByPlaceIdAndPersonnelId(Long placeId, Long personnelId);
}
